<?php
namespace app\api\validate;

use think\Validate;

/**
 * Class MapValidate
 * @package app\api\validate
 * @author zhenHong~
 */
class MapValidate extends Validate{

    protected $rule = [
        'keyword' => ['require'],
        'lat' => ['require','between' => '0,90'],
        'lng' => ['require','between' => '0,180'],
        'page_size' => ['require','number'],
        'page_index' => ['require','number'],
    ];

    protected $message = [
        'keyword' => '关键词不能为空',
        'lat' => '纬度参数错误',
        'lng' => '经度参数错误',
        'page_size' => '记录数参数错误',
        'page_index' => '分页参数错误',
    ];
}